package com.hhkj.payment.wechat.notification.controller;

import com.hhkj.payment.wechat.notification.model.res.NotificationRes;
import com.hhkj.payment.wechat.notification.service.biz.NotificationBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * WechatPayNotificationController
 * 微信通知回调前端
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/11/22 18:08
 */
@RestController
@RequestMapping("/open/wechat/pay/notification")
public class WechatPayNotificationController {

    @Autowired
    private NotificationBizService notificationBizService;

    /** 接收回调 */
    @PostMapping("/receive")
    public NotificationRes receive(HttpServletRequest request) {
        return notificationBizService.receive(request);
    }

}
